package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.system.domain.ZzwUserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ZzwBookingInfoMapper;
import com.ruoyi.system.domain.ZzwBookingInfo;
import com.ruoyi.system.service.IZzwBookingInfoService;

/**
 * 预约咨询Service业务层处理
 *
 * @author linzhaojie
 * @date 2024-06-02
 */
@Service
public class ZzwBookingInfoServiceImpl implements IZzwBookingInfoService
{
    @Autowired
    private ZzwBookingInfoMapper zzwBookingInfoMapper;

    /**
     * 查询预约咨询
     *
     * @param id 预约咨询主键
     * @return 预约咨询
     */
    @Override
    public ZzwBookingInfo selectZzwBookingInfoById(Integer id)
    {
        return zzwBookingInfoMapper.selectZzwBookingInfoById(id);
    }

    /**
     * 查询预约咨询列表
     *
     * @param zzwBookingInfo 预约咨询
     * @return 预约咨询
     */
    @Override
    public List<ZzwBookingInfo> selectZzwBookingInfoList(ZzwBookingInfo zzwBookingInfo)
    {
        return zzwBookingInfoMapper.selectZzwBookingInfoList(zzwBookingInfo);
    }

    /**
     * 新增预约咨询
     *
     * @param zzwBookingInfo 预约咨询
     * @return 结果
     */
    @Override
    public int insertZzwBookingInfo(ZzwBookingInfo zzwBookingInfo)
    {
        return zzwBookingInfoMapper.insertZzwBookingInfo(zzwBookingInfo);
    }

    /**
     * 修改预约咨询
     *
     * @param zzwBookingInfo 预约咨询
     * @return 结果
     */
    @Override
    public int updateZzwBookingInfo(ZzwBookingInfo zzwBookingInfo)
    {
        return zzwBookingInfoMapper.updateZzwBookingInfo(zzwBookingInfo);
    }

    /**
     * 批量删除预约咨询
     *
     * @param ids 需要删除的预约咨询主键
     * @return 结果
     */
    @Override
    public int deleteZzwBookingInfoByIds(Integer[] ids)
    {
        return zzwBookingInfoMapper.deleteZzwBookingInfoByIds(ids);
    }

    /**
     * 删除预约咨询信息
     *
     * @param id 预约咨询主键
     * @return 结果
     */
    @Override
    public int deleteZzwBookingInfoById(Integer id)
    {
        return zzwBookingInfoMapper.deleteZzwBookingInfoById(id);
    }
}
